package com.leyou.user.api;

import com.leyou.user.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: wzh
 * @Date: 2019/4/13 00:49
 * @Description:  对外提供接口，其他微服务通过fegin调用extend userApi就行了
 */
public interface UserApi {
    @GetMapping("/query")
    User queryUserByUsernameAndPassword(
            @RequestParam("username") String username,
            @RequestParam("password") String password);

}
